package net.fpeg.kotlin.msa.wordbase.service

import org.junit.jupiter.api.Assertions.*
import org.junit.jupiter.api.Test
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.test.context.SpringBootTest
import org.springframework.test.annotation.Rollback
import javax.transaction.Transactional

@SpringBootTest
internal class WordUserServiceTest {
    @Autowired
    lateinit var wordUserService: WordUserService

    @Test
    @Transactional
    @Rollback(false)
    fun add() {
        val x = wordUserService.add(12333)
        println(wordUserService.getOne(12333).defaultSource?.id)
    }
}